package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("drugPurchase")
public class DrugPurchase {
    @TableId(value = "purchaseId", type = IdType.AUTO)
    private Integer purchaseId;
    private Integer pId;              // 患者ID
    private BigDecimal totalAmount;   // 合计金额
    private Integer status;           // 0待审批 1已通过 2已拒绝
    private LocalDateTime applyTime;  // 申请时间
    private LocalDateTime approveTime;// 审批时间
    private Integer approverId;       // 审批人ID（医生/管理员）
    private Integer approverRole;     // 审批人角色 2医生 1管理员
    private String approveRemark;     // 审批备注/拒绝原因
}

